import axios from './api'
import qs from 'qs'
/**
 * version content-type默认为form-data v2提交方式为json
 * third 默认base api为 /trade/ ,填写之后为填写的值
 */
export const login = (data = {}) => {
  return axios({
    url: '/authentication/form',
    method: 'post',
    data: qs.stringify(data),
  })
}

export const getInfo = (data = {}) => {
  return axios({
    url: '/authentication/me',
    method: 'get',
    params: data
  })
}

export const signature = (data = {}) => {
  return axios({
    url: '/signature',
    method: 'post',
    data: qs.stringify(data),
  })
}


// 默认全部导出
export default {
  login,
  getInfo,
  signature,
}
